package com.anupam;

/**
 * @author anupamsaini@gmail.com (Anupam Saini)
 *
 */
public final class Cell {
  /**
   * Indicates the state of a cell, true indicates alive and false indicates a dead cell.
   */
  private boolean state;

  /**
   * Returns the current cell state.
   *
   * @return the state
   */
  public boolean isAlive() {
    return state;
  }

  /**
   * Sets a particular cells state.
   *
   * @param state.
   */
  public void setState(boolean state) {
    this.state = state;
  }
}
